package day15;


import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class Cleaner {
    private String name;
    public Cleaner(String n){
        this.name=n;
    }
    public void show(){
       // Xichengqi x=new Xichengqi();
    }
    public void doClean(String roomno){
        Date d=new Date();
        class Xichengqi{
            private String brand;
            public Xichengqi(String b){
                this.brand=b;
            }
            public void clean(){
                System.out.println(Cleaner.this.name+"正在使用"+this.brand+"打扫房间"+roomno+",时间是"+d);
            }
        }
        Xichengqi x=new Xichengqi("美的吸尘器");
        x.clean();
    }
}
